using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using NBear.Common;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
    public Service () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public EntitiesImpl.SampleEntity[] HelloWorld(EntitiesImpl.SampleEntity obj)
    {
        Entities.SampleEntity newObj = EntityFactory<Entities.SampleEntity>.CreateObject();
        newObj.GetKeyValues()[0] = 1;
        return EntityFactory<Entities.SampleEntity>.ConvertToEntityArray<EntitiesImpl.SampleEntity>(new Entities.SampleEntity[] { newObj, EntityFactory<Entities.SampleEntity>.CreateObject(), newObj });
    }
    
}
